<?php
require(dirname(dirname(__FILE__)).'/__global.php');
$url = 'http://dr.meila.com/intraapi/aj_fetch.php';

$goods_url = 'http://www.meilishuo.com/goods/ajax_catalog/dress/2001000000000/7d?view=1&word=34363&global=1&page=';
$frame = '&frame=';
$array = array();
for($i=0;$i<4;$i++){
    for($j=0;$j<6;$j++){
        $data['url'] = $goods_url.$i.$frame.$j;
        $result = json_decode(Tool_http::post($url,$data),true);
        $result = json_decode($result['data'],true);
        $array = array_merge($array,$result['tid']);
        unset($result);
    }
}



//preg_match_all('|href\=\"(\/share\/\d+)\"|U',$result['data'],$match);
var_dump(count($array));
var_dump($array);

